/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package modele;

import java.util.Collection;
import java.util.HashSet;

/**
 *
 * @author sio
 */
public class Type {
    private int code;
    private String description;
    private int prix;
    private Collection <Emplacement> lesEmplacements = new HashSet <Emplacement> ();
    
    public Type(int code, String description, int prix, Collection <Emplacement> e) {
        this.code = code;
        this.description = description;
        this.prix = prix;
        lesEmplacements = e;
    }

    public int getCode(){
        return code;
    }
    public String getDescription(){
        return description;
    }
    public int getPrix(){
        return prix;
    }
}
